from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
from . import views


urlpatterns = [
    # 需要加引号
    # 注册账户
    path('register', views.register, name='register'),
    #跳转到注册页面
    path('to_register/', views.to_register, name="to_register"),
    path('new_article/', views.new_article, name='new_article'),
    path('user_info/', views.user_info, name='user_info'),
    path('go_new_article/', views.go_new_article, name='go_new_article'),
    path('logout/', views.logout, name='logout'),
    path('polls/', include('polls.urls')),
    path('admin/', admin.site.urls),
    path('login/', views.login_fu, name='login'),
    path('summernote/', include('django_summernote.urls')),
    path('jet/', include('jet.urls', 'jet')),  # Django JET URLS
    path('jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')),   # Django JET dashboard URLS0
    path('comment/', include('comment.urls')),
]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
